package com.heima.user.controller.v1;


import com.heima.model.common.dtos.ResponseResult;
import com.heima.user.service.ApUserApplicationService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.*;

@Api(value = "app端用户通过激活api",tags = "app端用户通过激活api")
@RestController
@RequestMapping("/api/v1/pass/")
public class ApUserApplicationController {
    @Autowired
    ApUserApplicationService apUserApplicationService;
    /**
     * 用户激活功能
     */
    @PostMapping("passUser")
        public ResponseResult pass(@RequestParam("email")String email){
        return apUserApplicationService.application(email);
    }
}
